package com.dao.purchase;

import com.model.purchase.PurchaseNeed;
import com.model.purchase.PurchasePlan;

import java.util.List;
import java.util.Map;

/**
 * @description purchase_plan
 * @author chenjun
 * @date 2022-02-25
 */
public interface PlanMapper {

    /**
     * 新增
     * @author chenjun
     * @date 2022/02/25
     **/
    int insert(PurchasePlan purchasePlan);

    /**
     * 刪除
     * @author chenjun
     * @date 2022/02/25
     **/
    int delete(int id);

    /**
     * 更新
     * @author chenjun
     * @date 2022/02/25
     **/
    int update(PurchasePlan purchasePlan);

    /**
     * 查询 根据主键 id 查询
     * @author chenjun
     * @date 2022/02/25
     **/
    PurchasePlan load(String planId);

    /**
     * 查询 分页查询
     * @author chenjun
     * @date 2022/02/25
     **/
    List<PurchasePlan> pageList(int offset, int pagesize);

    /**
     * 查询 分页查询 count
     * @author chenjun
     * @date 2022/02/25
     **/
    int pageListCount(int offset,int pagesize);


	List<PurchasePlan> selectList(Map<String, Object> map);

	int selectListCount(Map<String, Object> map);
}